package com.xkcyy.one.dto;

import com.xkcyy.one.entity.Conversation;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 对话创建数据传输对象
 *
 * @author AI Assistant
 */
@Data
public class ConversationCreateDTO {
    
    /**
     * 对话标题
     */
    private String title;
    
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * agentId
     */
    private Long agentId;

    /**
     * 将DTO转换为实体
     *
     * @return 对话实体
     */
    public Conversation toEntity() {
        Conversation conversation = new Conversation();
        BeanUtils.copyProperties(this, conversation);
        return conversation;
    }
} 